<?php defined('SYSPATH') or die('No direct script access.'); 

class Controller_Widgets extends Controller_Template {
    public function before() {
        parent::before();
        
        /*$widget_name = Request::current()->controller();        
        $controller = Request::initial()->controller();        
        $action = Request::initial()->action();
        
        $widget_config = Kohana::config("widgets.$widget_name.$controller");
        
        if($widget_config != NULL) {
            if(in_array($action, $widget_config)) {
                $this->auto_render = FALSE;
                return FALSE;
            }
        }*/
        if(Request::current()->is_initial()) {
            $this->auto_render = FALSE;
        }
    }
}

?>
